#include "Boss2ItemData.h"

Boss2ItemData::Boss2ItemData(int id, int type, double x, double y)
	{
		this->id = id; 
		this->type = type;
		this->rect = new Rect(x, y, _OBS_BOSS_2_HEIGHT, _OBS_BOSS_2_WIDTH);
		this->rect->Vx = this->rect->Vy = 0;
		this->initData();
		
		if(type == _ID_ARMY_BOSS_ITEM_TOP_2)
		{
			sprites->setState(_STATE_MAP_STAGE2_BOSS_ITEM_TOP_1);
		}
	}

	void Boss2ItemData:: initSpriteHandler(LPD3DXSPRITE spritehandler)
	{
		sprites->initSpriteHandler(spritehandler);
	}

	void Boss2ItemData:: initData()
	{
		this->initSprite();
	}

	void Boss2ItemData:: initSprite()
	{
		sprites = new Sprites(rect);
		sprites->addSprite(_STATE_MAP_STAGE2_BOSS_ITEM_1, _ID_ARMY_BOSS_ITEM_2);
		sprites->addSprite(_STATE_MAP_STAGE2_BOSS_ITEM_TOP_1, _ID_ARMY_BOSS_ITEM_TOP_2);
		sprites->setState(_STATE_MAP_STAGE2_BOSS_ITEM_1);
	}